<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>博客列表</title>
</head>
<body>
    <h1>博客列表</h1>
    <a href="{% url 'post_new' %}">新建新博客</a>
    <ul>
        {% for post in posts %}
            <div>
                <h2><a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a></h2>
                <p>Content: {{ post.content }}</p>
                <p>Published on: {{ post.publish_date }}</p>
                <p>Author: {{ post.author }}</p>
            </div>
        {% endfor %}
    </ul>
</body>
</html>